package com.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "swagger")
public class SwaggerProperties {

    private Boolean enabled;

    private String title;

    private String version;

    private String description;

    private String contactName;

    private String contactUrl;

    private String contactEmail;

    private Authorization authorization;

    @Data
    public static class Authorization {

        private String keyName;

        private String name;

        private String passAs = "header";
    }
}